﻿@{
    //List all Layout files
    DirectoryInfo dirInfo = new DirectoryInfo(Server.MapPath("~/rcAddons"));
    DirectoryInfo[] listAddons = dirInfo.GetDirectories("*", SearchOption.TopDirectoryOnly);
  
}
<!DOCTYPE html>
<html>
<head>
    <title>razorC.net CMS</title>
    <link href="~/rcAdmin/css/rcCP.css" rel="stylesheet" />
    <link href="~/rcAdmin/css/grid/style.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.2.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/jquery-ui.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/mvc/5.2.3/jquery.validate.unobtrusive.js"></script>
    <link type="text/css" rel="Stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/themes/black-tie/jquery-ui.css" /> 

    
    @RenderSection("head", false)
</head>
<body>
    <div id="page">
        <div id="menu">
            @RenderSection("menu", false )
            <a href="http://www.razorc.net/add-ons" class="top">Add-ons</a>
            <ul>
                @foreach (var d in listAddons)
                {
                    <li><a href="@Href("~/rcAdmin/" + @d.Name + "/default")">@rcFunctions.addonsMenu(d.Name)</a></li>
                }
            </ul>
        </div>
        <div id="content">
            <h1>@Page.Title</h1>
            <div id="renderBody">
                @RenderBody()
            </div>
        </div>
    </div>
</body>
</html>
